{extend name="base"/}
{block name="resources"}
<style>
	.ns-item-block-parent .ns-item-poa-pic {
		background-image: linear-gradient(to right, #fb8700, #fb6400);
		text-align: center;
		color: #FFFFFF;
		width: 70px;
		height: 30px;
		line-height: 30px;
		border-bottom-left-radius: 3px;
	}
</style>
{/block}
{block name="main"}
<!-- 店铺营销 -->
<div class="layui-card ns-card-common ns-card-brief">
	<div class="layui-card-header">
		<span class="ns-card-title">店铺营销</span>
	</div>
	<div class="layui-card-body">
		<div class="site_list ns-item-block-parent ns-item-five">
			{foreach $promotion as $list_k => $list_v}
			{if  condition="$list_v['show_type'] eq 'shop'"}
					{empty name="$list_v['is_developing']"}
					<a class="ns-item-block ns-item-block-hover-a" href="{:addon_url($list_v['url'])}">
						<div class="ns-item-block-wrap">
							<div class="ns-item-pic">
								<img src="{:img($list_v.icon)}" />
							</div>
							<div class="ns-item-con">
								<div class="ns-item-content-title">{$list_v.title}</div>
								<p class="ns-item-content-desc">{$list_v.description}</p>
							</div>
						</div>
					</a>
					{else/}
					<a class="ns-item-block ns-item-block-hover-a" href="#">
						<div class="ns-item-block-wrap">
							<div class="ns-item-pic">
								<img src="{:img($list_v.icon)}" />
							</div>
							<div class="ns-item-con">
								<div class="ns-item-content-title">{$list_v.title}</div>
								<p class="ns-item-content-desc">{$list_v.description}</p>
							</div>
							<div class="ns-item-poa-pic">
								敬请期待
							</div>
						</div>
					</a>
					{/empty}
			{/if}
			{/foreach}
		</div>
	</div>
</div>

<!-- 平台营销 -->
<div class="layui-card ns-card-common ns-card-brief">
	<div class="layui-card-header">
		<span class="ns-card-title">平台营销</span>
	</div>
	<div class="layui-card-body">
		<div class="site_list ns-item-block-parent ns-item-five">
			{foreach $promotion as $list_k => $list_v}
			{if  condition="$list_v['show_type'] eq 'admin'"}
					{empty name="$list_v['is_developing']"}
					<a class="ns-item-block ns-item-block-hover-a" href="{:addon_url($list_v['url'])}">
						<div class="ns-item-block-wrap">
							<div class="ns-item-pic">
								<img src="{:img($list_v.icon)}" />
							</div>
							<div class="ns-item-con">
								<div class="ns-item-content-title">{$list_v.title}</div>
								<p class="ns-item-content-desc">{$list_v.description}</p>
							</div>
						</div>
					</a>
					{else/}
					<a class="ns-item-block ns-item-block-hover-a" href="#">
						<div class="ns-item-block-wrap">
							<div class="ns-item-pic">
								<img src="{:img($list_v.icon)}" />
							</div>
							<div class="ns-item-con">
								<div class="ns-item-content-title">{$list_v.title}</div>
								<p class="ns-item-content-desc">{$list_v.description}</p>
							</div>
							<div class="ns-item-poa-pic">
								敬请期待
							</div>
						</div>
					</a>
					{/empty}
			{/if}
			{/foreach}
		</div>
	</div>
</div>

<!-- 会员营销 -->
<div class="layui-card ns-card-common ns-card-brief">
	<div class="layui-card-header">
		<span class="ns-card-title">会员营销</span>
	</div>
	<div class="layui-card-body">
		<div class="site_list ns-item-block-parent ns-item-five">
			{foreach $promotion as $list_k => $list_v}
			{if  condition="$list_v['show_type'] eq 'member'"}
					{empty name="$list_v['is_developing']"}
					<a class="ns-item-block ns-item-block-hover-a" href="{:addon_url($list_v['url'])}">
						<div class="ns-item-block-wrap">
							<div class="ns-item-pic">
								<img src="{:img($list_v.icon)}" />
							</div>
							<div class="ns-item-con">
								<div class="ns-item-content-title">{$list_v.title}</div>
								<p class="ns-item-content-desc">{$list_v.description}</p>
							</div>
						</div>
					</a>
					{else/}
					<a class="ns-item-block ns-item-block-hover-a" href="#">
						<div class="ns-item-block-wrap">
							<div class="ns-item-pic">
								<img src="{:img($list_v.icon)}" />
							</div>
							<div class="ns-item-con">
								<div class="ns-item-content-title">{$list_v.title}</div>
								<p class="ns-item-content-desc">{$list_v.description}</p>
							</div>
							<div class="ns-item-poa-pic">
								敬请期待
							</div>
						</div>
					</a>
					{/empty}
			{/if}
			{/foreach}
		</div>
	</div>
</div>
{/block}
{block name="script"}
<script>
</script>
{/block}